<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/vue.js"></script>
</head>
<body>
    <div id="app">
        <input id="name" type="text" v-model="name">
        <!-- 系统鼠标修饰符  实现鼠标左击，右击 滑轮点击 -->
        <button @click.middle="log">log</button>
    </div>    
    <script>
        var vm = new Vue({
            el: '#app',
            data: {
                name: ''
            },
            methods: {
                log(){
                    console.log(`name:${this.name}`)
                }
            }
        })
    </script>
</body>
</html>